package com.qingkai.onlineshop.data.relations

import androidx.room.Embedded
import androidx.room.Relation
import com.qingkai.onlineshop.data.entity.CategoryEntity
import com.qingkai.onlineshop.data.entity.ItemEntity

data class ItemWithCategory(
    @Embedded val item: ItemEntity,
    @Relation(
        parentColumn = "categoryId",
        entityColumn = "id"
    )
    val category: CategoryEntity
)